const path = require('path')
module.exports = {
    mode: 'development',
    entry: './src/app.js',
    resolve: {
        alias: {
            '@': path.resolve(__dirname, './src') //别称
        },
        extensions: ['.json','.js','.vue'] //引用的顺序 math.json>math.js>math.vue
    },
    externals: { //外部扩展
        jquery:[
            'http://cdn', //CDN链接
            'JQuery', //暴露的对象
        ]
    },
    externalsType: "script"
}